<?php
/**
 * Created by PhpStorm.
 * User: hasee
 * Date: 2018/3/21
 * Time: 14:50
 */
use yii\widgets\ActiveForm;
?>

<div style="display: none;" id="traffic2" class="view">
    <div class="wapper3"  >
        <img class="jt" src="/img/jt.png">

	<ul style="margin-top:2%;padding:2%">
		<li>
                <span>是否接机</span>
                <input type="hidden" name="Registration[is_aircraft]" value="">
                    <input type="radio" name="Registration[is_aircraft]" value="是" <?= $model->is_aircraft=='是'?'checked':''?>> <span>是</span>
                    <input type="radio" name="Registration[is_aircraft]" value="否" <?= $model->is_aircraft=='否'?'checked':''?>> <span>否</span>
		</li>

		<li>

                <span>返程方式</span>
                <input type="hidden" name="Registration[back_transportation]" value="">
                    <input type="radio" name="Registration[back_transportation]" value="飞机" <?= $model->back_transportation=='飞机'?'checked':''?>> <span>飞机</span>
                   <input type="radio" name="Registration[back_transportation]" value="火车" <?= $model->back_transportation=='火车'?'checked':''?>> <span>火车</span>
                   <input type="radio" name="Registration[back_transportation]" value="自驾" <?= $model->back_transportation=='自驾'?'checked':''?>> <span>自驾</span>

		</li>
		<li>
             <span>返程抵达城市</span>
                <input type="text" id="registration-arrived_city" name="Registration[arrived_city]" onblur="registration_arrived_city()"  value="<?= $model->arrived_city?>">
					
		</li>
		<li>
                <span>返程出发地点</span>
					<select id="registration-departure_location" name="Registration[departure_location]" aria-invalid="false">
						<option value="上秦准假日酒店" <?= $model->departure_location=='上秦准假日酒店'?'selected':''?>>上秦准假日酒店</option>
					</select>

		</li>
		<li>
                <span>返程航班号/车次</span>
					<input type="text" id="registration-back_flight_number" onblur="registration_back_flight_number()" name="Registration[back_flight_number]" value="<?= $model->back_flight_number?>">
		</li>
		<li>

                <span>返程出发时间</span>
					<input type="text" id="registration-departure_time" onblur="registration_departure_time()" name="Registration[departure_time]" value="<?= $model->departure_time?>">

		</li>
		<li>

            <span>是否送机</span>
            <input type="hidden" name="Registration[is_send]" value="">
            <input type="radio" name="Registration[is_send]" value="是" <?= $model->is_send=='是'?'checked':''?>> <span>是</span>
            <input type="radio" name="Registration[is_send]" value="否" <?= $model->is_send=='否'?'checked':''?>> <span>否</span>

		</li>
	</ul>
</div>
</div>
<script type="text/javascript">
	function registration_arrived_city(){
        var value=$('#registration-arrived_city').val();
        if(value==''){
            alert('返程抵达城市不能为空');
        }

    }
function registration_back_flight_number(){
        var value=$('#registration-arrival_location').val();
        if(value==''){
            alert('返程航班号/车次不能为空');
        }

    }
    function registration_come_flight_number(){
        var value=$('#registration-back_flight_number').val();
        if(value==''){
            alert('航班号/车次不能为空');
        }

    }
    function registration_departure_time(){
        var value=$('#registration-departure_time').val();
        if(value==''){
            alert('返程出发时间不能为空');
        }

    }
</script>